﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharpObjects.SearchEngine.HtmlParsing.Html
{
    public class HtmlListTag : HtmlContainerTag
    {
        private string name;

        public const string TagNameUL = "ul";
        public const string TagNameOL = "ol";
        public const string TagNameDL = "dl";

        public override string Name { get { return this.name; } set { this.name = value; } }

        public HtmlListTag(HtmlGenericTag tag = null)
            : base(tag)
        {
            if(tag != null)
            {
                this.name = tag.Name;
            }
            else
            {
                this.name = string.Empty;
            }
        }

        public static HtmlTag CreateInstance(HtmlGenericTag tag)
        {
            return new HtmlListTag(tag);
        }

        public override bool IsContent { get { return true; } set { } }
    }
}
